.class Lcom/waiqin365/lightapp/returngoods/u;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/returngoods/v;

.field final synthetic b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;Lcom/waiqin365/lightapp/returngoods/v;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    iput-object p2, p0, Lcom/waiqin365/lightapp/returngoods/u;->a:Lcom/waiqin365/lightapp/returngoods/v;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    :try_start_0
    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string/jumbo v1, "input_method"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;->e(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;->e(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string/jumbo v0, ""

    :cond_0
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    const/16 v2, 0x64

    if-le v1, v2, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/u;->a:Lcom/waiqin365/lightapp/returngoods/v;

    sget-object v1, Lcom/waiqin365/lightapp/returngoods/v;->a:Lcom/waiqin365/lightapp/returngoods/v;

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    const v2, 0x7f0806cd

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;->showToast(Ljava/lang/String;)V

    :cond_1
    :goto_1
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    const v2, 0x7f0806c4

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;->showToast(Ljava/lang/String;)V

    goto :goto_1

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/u;->a:Lcom/waiqin365/lightapp/returngoods/v;

    sget-object v2, Lcom/waiqin365/lightapp/returngoods/v;->a:Lcom/waiqin365/lightapp/returngoods/v;

    if-ne v1, v2, :cond_4

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;->b(Ljava/lang/String;)V

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;->f(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;)Landroid/widget/PopupWindow;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;->f(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;)Landroid/widget/PopupWindow;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;->f(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;)Landroid/widget/PopupWindow;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    goto :goto_1

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/u;->b:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsDetailActy;->a(Ljava/lang/String;)V

    goto :goto_2
.end method
